import Vue from 'vue'
import App from './App.vue'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 公共样式
import '@/style/index.less'
moment.locale("zh-cn");
Vue.config.productionTip = false
Vue.use(ElementUi)
//时间格式化过滤器
Vue.filter('dateFormat', (dateStr, pattern = 'YYYY-MM-DD') => {
  if (dateStr) {
    return moment(Number(dateStr)).format(pattern)
  } else {
    return dateStr
  }
})
new Vue({
  render: h => h(App),
}).$mount('#app')
